package com.potenza.training.resume.feign;

import com.potenza.training.dictionary.entity.HopeAddress;
import com.potenza.training.dictionary.entity.HopePosition;
import com.potenza.training.dictionary.entity.Industry;
import com.potenza.training.dictionary.entity.PositionOne;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "potenza-training-dictionary")
public interface DictionartFeig {

    @GetMapping("/hope/findindustry")
    public List<Industry> findindustry();

    @GetMapping("/hope/positions")
    public List<PositionOne> edit();

    @GetMapping("/hope/addresss/grouping")
    public HopeAddress findByIdtow(@RequestParam String id);

    @GetMapping("/hope/position/grouping")
    public HopePosition findById(@RequestParam String id);
}
